package Common;
/**
 * 
 * Data for course 
 *
 */

public class Course {
	protected String Cname;
	
	protected String Cid;
	protected String Semester;
	protected String Year;
	protected String Grade;
	protected String Sid;
	protected Boolean IsExeptional;
	
	/**
	 * 
	 * @param name = Course name
	 * @param id = Course ID
	 **@param sem = Semester
	 * @param y = Year
	 * @param g = grade
	 * @param ex = Is exceptional
	 */
	
	public Course(String name, String id, String sem, String y, String g, String ex)
	{
		this.Cname=name;
		this.Cid=id;
		this.Semester=sem;
		this.Year=y;
		this.Grade=g;
		if(ex.equalsIgnoreCase("true")) this.IsExeptional=true;
		else this.IsExeptional=false;
		
		
		}
	public Course(String name, String id, String sem, String y, String g, String ex,String sid)
	{
		this.Cname=name;
		this.Cid=id;
		this.Semester=sem;
		this.Year=y;
		this.Grade=g;
		if(ex.equalsIgnoreCase("true")) this.IsExeptional=true;
		else this.IsExeptional=false;
		this.Sid=sid;
		
		
		}
	public Course(String name, String id, String sem, String y, String g)
	{
		this.Cname=name;
		this.Cid=id;
		this.Semester=sem;
		this.Year=y;
		this.Grade=g;
		
		this.IsExeptional=false;
		
		
		}
	
	/**
	 * Empty constructor for this class
	 */
	public Course ()
	{
		this.Cname=null;
		this.Cid=null;
		this.Semester=null;
		this.Year=null;
		this.Grade=null;
		this.IsExeptional=false;
		
	}
	

	
	public String getCname()
	{
		return this.Cname;
	}
	
	public String getCid()
	{
		return this.Cid;
	}
	public String getSemester()
	{
		return this.Semester;
	}
	public String getYear()
	{
		return this.Year;
	}
	public String getGrade()
	{
		return this.Grade;
	}
	public void setCname(String s)
	{
		this.Cname=s;
	}
	public String getSid() {
		return Sid;
	}
	public void setSid(String sid) {
		Sid = sid;
	}
	public void setCid(String cid) {
		Cid = cid;
	}
	public void setSemester(String semester) {
		Semester = semester;
	}
	public void setYear(String year) {
		Year = year;
	}
	public void setGrade(String grade) {
		Grade = grade;
	}
	public Boolean getIsExeptional() {
		return IsExeptional;
	}
	public void setIsExeptional(Boolean isExeptional) {
		IsExeptional = isExeptional;
	}

}
